{include file="admin/site_header.tpl"}
{include file="admin/dashboard/navi.tpl"}
{$i = $data.row}

<div id="container">
	<div class="inner-container">

		<div class="box box-100 greenbox">
			<div class="boxin">
				<div class="header">
					<h3>ID : {$i.id} - {$i.nama}</h3>
				</div>
				<div class="content" >
					<div class="quick-link">

		<!-- form -->			
		<style>
			label { display:inline-block;width:140px;padding:5px 0 5px 20px; }
		</style>			

		<form id="form_mahasiswa" class="form columns" action="{$site.site}adminajax/alumniUpdate/" method="POST" >

			<input type="hidden" id="ID" 	name="ID"  	 value="{$i.id}"/>
			<input type="hidden" id="order" name="order" value="{$data.order}"/>
			<input type="hidden" id="sort" 	name="sort"  value="{$data.sort}"/>
			<input type="hidden" id="page" 	name="page"  value="{$data.page}"/>
			<input type="hidden" id="limit" name="limit" value="{$data.limit}"/>
			
			<label>&nbsp;<b><span id="alert">{$data.msg}</span></b></label><br />
			
			{if $i.id}
			<label>ID: </label>
				<input type="text" class="inputtext mandatory" id="ID" name="ID" disabled value='{$i.id}' style="width:100px;"/> <br />
			{else}
			<label>ID: </label>
				<input type="text" class="inputtext mandatory" id="IDnew" name="IDnew" value='0' style="width:100px;"/> <br />
			{/if}	
				
			<label>Nama: </label>
				<input type="text" class="inputtext mandatory" id="nama" name="nama" value='{$i.nama}' style="width:550px;"/> <br />

			<label>Jurusan: </label>
				<input type="text" class="inputtext mandatory" id="jurusan" name="jurusan" disabled value='{$i.jurusan}' style="width:550px;"/> <br />

			<label>Lulus: </label>
				<input type="text" class="inputtext mandatory" id="lulus" name="lulus" value='{$i.lulus}' style="width:50px;"/> <br />

			<label>Angkatan: </label>
				<input type="text" class="inputtext mandatory" id="angkatan" name="angkatan" value='{$i.angkatan}' style="width:50px;"/> <br />

			<label style="margin-left:165px; padding:0; width:80px;">
			<button id="btnsave" value="save" class="button altbutton" type="submit"/>Submit</button>
			</label>

			<label style="margin-left:5px; padding:0; width:80px;">
			<button id="back" value="back" class="button altbutton" type="button"/>Back</button>
			</label>
		</form>
		<!-- end form -->
	
			</div><!-- .quick-link -->
		</div><!-- .content -->
	</div>
</div>

<script type="text/javascript">
$(document).ready(function(){
	$('#back').click( function (e) {
		top.location.href = "{$data.back}";
	});
	
});
</script>

{include file="admin/site_footer.tpl"}